//
//  PTDate.m
//  KCFurProject
//
//  Created by ios程序员 on 15/11/7.
//  Copyright (c) 2015年 ios程序员. All rights reserved.
//

#import "PTDate.h"

@implementation PTDate

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    {
        if (self) {
            self.dateImageView = [[UIImageView alloc] initWithFrame:CGRectMake(5*HEIGH, 5*HEIGH, self.frame.size.width-10*HEIGH, self.frame.size.height - 60*HEIGH)];
            [self.contentView addSubview:self.dateImageView];
            
            self.xiangQingLabel = [[UILabel alloc] initWithFrame:CGRectMake(5*HEIGH, self.frame.size.height-50*HEIGH, self.frame.size.width, 20*HEIGH)];
            self.xiangQingLabel.font = [UIFont systemFontOfSize:12];
            [self.contentView addSubview:self.xiangQingLabel];
            
            self.diDianLabel = [[UILabel alloc] initWithFrame:CGRectMake(5*HEIGH, self.frame.size.height- 30, 50, 10)];
            self.diDianLabel.textColor = [UIColor grayColor];
            self.diDianLabel.font = [UIFont systemFontOfSize:12];

            [self.contentView addSubview:self.diDianLabel];
            
            self.baoYouLabel = [[UILabel alloc ]initWithFrame:CGRectMake(self.frame.size.width - 50*WIDTH, self.frame.size.width - 30*HEIGH, 40*WIDTH, 10*HEIGH)];
            self.baoYouLabel.font = [UIFont systemFontOfSize:12];
            self.baoYouLabel.textColor = [UIColor grayColor];
            [self.contentView addSubview:self.baoYouLabel];
            
            self.moneyLabel = [[UILabel alloc] initWithFrame:CGRectMake(5*HEIGH, self.frame.size.width-15*HEIGH, 50, 15)];
            self.moneyLabel.font = [UIFont systemFontOfSize:12];
            self.moneyLabel.textColor = [UIColor redColor];
            [self.contentView addSubview:self.moneyLabel];
            
            self.tuanGouLabel = [[UILabel alloc ] initWithFrame:CGRectMake(WI-60*WIDTH, WI-20*WIDTH, 60*WIDTH, 20*HEIGH)];
            self.tuanGouLabel.font = [UIFont systemFontOfSize: 15];
            self.tuanGouLabel.text = @"立即团购";
            [self addSubview:self.tuanGouLabel];
            
            
        }
        return self;
    }
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
